package com.howie.parnote.validator.bean.note;

import com.howie.parnote.module.RoleModule;
import com.howie.parnote.module.IncidentModule;
import com.howie.parnote.module.LocationModule;

/**
 * <p>Title: parnote</p>
 * <p>
 * Description: parnote
 * </p>
 *
 * @author huangyan
 *         Created by HY on 2015/2/13 0013.
 * @version v1.0.0
 */
public class ServiceNoteBean {

	private RoleModule roleModule;
	private LocationModule locationModule;
	private IncidentModule incidentModule;

	private boolean custom = false;
	private boolean customRole = false;
	private boolean customLocation = false;
	private boolean customIncident = false;

	public boolean isCustom() {
		return custom;
	}

	public boolean isCustomRole() {
		return customRole;
	}

	public void setCustomRole(boolean customRole) {
		this.customRole = customRole;
		custom = customRole | customLocation | customIncident;
	}

	public boolean isCustomLocation() {
		return customLocation;
	}

	public void setCustomLocation(boolean customLocation) {
		this.customLocation = customLocation;
		custom = customRole | customLocation | customIncident;
	}

	public boolean isCustomIncident() {
		return customIncident;
	}

	public void setCustomIncident(boolean customIncident) {
		this.customIncident = customIncident;
		custom = customRole | customLocation | customIncident;
	}

	public RoleModule getRoleModule() {
		return roleModule;
	}

	public void setRoleModule(RoleModule roleModule) {
		this.roleModule = roleModule;
	}

	public LocationModule getLocationModule() {
		return locationModule;
	}

	public void setLocationModule(LocationModule locationModule) {
		this.locationModule = locationModule;
	}

	public IncidentModule getIncidentModule() {
		return incidentModule;
	}

	public void setIncidentModule(IncidentModule incidentModule) {
		this.incidentModule = incidentModule;
	}
}
